package com.broada.apm.indicator.api;

import java.util.List;

import com.broada.apm.model.IPLocation;

public interface IPLocationService {
	
	/**
	 * 添加IP地理位置
	 * @param ipLocation
	 */
	public void addIPLocation(IPLocation ipLocation);
	
	/**
	 * 更新IP地理位置
	 * @param ipLocation
	 */
	public void updateIPLocation(IPLocation ipLocation);
	
	/**
	 * 删除IP地理位置
	 * @param ipLocation
	 */
	public void deleteIPLocation(IPLocation ipLocation);
	
	/**
	 * 查询所有IP地理位置
	 * @return
	 */
	public List<IPLocation> getAllIPLocations();

	/**
	 * 条件查询IP地理位置
	 * @param ipLocation
	 * @return
	 */
	public List<IPLocation> getIPLocation(IPLocation ipLocation);

	/**
	 * 查询所有自动发现的IP地理位置
	 * @return
	 */
	public List<IPLocation> getAllDictIpLocations();

	public List<com.broada.apm.model.IPLocation> getIPLocationByCondition(com.broada.apm.model.IPLocation unwrap);
}
